Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oel 462: facet list template overriden. #9

Merged
merged 5 commits into from
Sep 16, 2021
Merged

Oel 462: facet list template overriden. #9

merged 5 commits into from
Sep 16, 2021

Conversation

Maxfire
Copy link
Contributor

@Maxfire Maxfire commented Sep 14, 2021

No description provided.

Copy link
Contributor

@drishu drishu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see the Sitebranding as an example or any of the other

*/
protected function setUp(): void {
parent::setUp();
/** @var \Drupal\Core\Extension\ThemeInstallerInterface $theme_installer */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not needed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests were excluded from this task as agreed.

* @covers ::getFacets
* @covers ::removeFacet
*/
public function testFacets() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public function testFacets() {
public function testFacetsRendering(): void {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests were excluded from this task as agreed.


$facets = ['foo' => 'bar'];
$entity->setFacets($facets);
$this->assertEquals($facets, $entity->getFacets());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to render the build of the facets summary block, and assert the markup with Crawler

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests were excluded from this task as agreed.

{%- if items -%}
{%- for item in items -%}
{% if item.value['#type'] == 'link' %}
{% include '@oe-bcl/bcl-badge/badge.html.twig' with {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{{ pattern('badge', {
      'label': 'label',
      'assistive_text': 'assistive_text',
      'url': '#',
      'icons_path': bcl_icon_path,
      'dismissible': true
    }) }}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 done.

@Maxfire Maxfire changed the title Oel 462: facet list template overriden, tests providen. Oel 462: facet list template overriden. Sep 15, 2021
Copy link
Contributor

@GilNovacomm GilNovacomm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the summary title is not in the scope of this ticket, the current implementation is correct.

@drishu drishu merged commit 6309150 into 1.x Sep 16, 2021
@drishu drishu deleted the OEL-462 branch September 16, 2021 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants